import { Component } from '@angular/core';

@Component({
  selector: 'app-auto-complete-basic-demo',
  templateUrl: './auto-complete-basic-demo.component.html',
  styleUrl: './auto-complete-basic-demo.component.less',
})
export class AutoCompleteBasicDemoComponent {
  sources: string[] = [];
  value = '';

  inputChange() {
    if (this.value) {
      this.sources = [
        this.value,
        this.value + this.value,
        this.value + this.value + this.value,
      ];
    } else {
      this.sources = [];
    }
  }
}
